var app = new Vue({
    el: '#app',
    data: {
        content: ''
    },
    created: function() {},
    methods: {
        onSelect: function(masterId) {
            layer.open({ type: 2 });
            var param = {
                masterId: masterId
            }
            fly.request('/fd/submitConsult', param, {
                    method: "post",
                })
                .then(function(response) {
                    layer.closeAll();
                    var status = response.data.status
                    if (status == 200) {
                        var orderNo = response.data.info
                        window.location.href = '/fd/pay/?orderNo=' + orderNo;
                        return;
                    } else {
                        var msg = response.data.msg
                        layer.open({
                            content: msg,
                            btn: '我知道了'
                        });
                    }
                })
                .catch(function(error) {
                    console.log(error);
                });
        },
        feed: function() {
            layer.open({
                content: "敬请期待",
                btn: "确定"
            })
        },
        follow: function() {
            layer.open({
                content: "敬请期待",
                btn: "确定"
            })
        }
    }
})
$(function() {
    $("#rate1").rateYo({
        starWidth: "14px",
        readOnly: true
    });
    $("#rate2").rateYo({
        starWidth: "14px",
        readOnly: true
    });
    $("#rate3").rateYo({
        starWidth: "14px",
        readOnly: true
    });
});